/*=====================================================================================================================
                    Copyright(c) 2009 Geometric PLM Software Corp. All rights reserved.
                             Unpublished - All rights reserved
=======================================================================================================================
File description:
    Filename: tc_pom_enq.h
    Module  : POM enquery module of (geometric) itk.

        This file manages some operations about enquiring the db by the sql syntax.
=======================================================================================================================
Date               Name              Description of Change
14-Jul-2009        Penn,Xie          Initialize creation
$HISTORY$
=====================================================================================================================*/
#ifndef GITK_TC_POM_ENQ_H
#define GITK_TC_POM_ENQ_H

#ifdef __cplusplus
    extern "C"
    {
#endif

    /**
    * Get the value count in db.
    * @param className  - <I> the class name
    * @param targetProp - <I> the target property name
    * @param codeValue  - <I> the target property value
    * @param count      - <O> the count
    * @return - ITK_ok or error code
    *
    * Implement the sql like the following command:
    * SQL > select count(targetProp) from className where targetProp = 'codeValue'
    */
    int GENQ_get_value_count( const char *className, const char *targetProp, const char *codeValue, int *count );
    
#ifdef __cplusplus
    }
#endif




#endif //GITK_TC_POM_ENQ_H
